package model;

/**
 * 
 * This class portraits a daily Exercise. 
 * @author Roman Pusec, Dennis Goldfinger, Marko Bilic
 *
 */
public class Exercise extends Activity {
	
	private double expenditure;
	
	/**
	 * Constructor which sets the name and expenditure. 
	 * @param name Name of the exercise. 
	 * @param expenditure Expenditure of the exercise. 
	 */
	public Exercise(String name, double expenditure) 
	{ 
		super(name);
		this.expenditure = expenditure;
	}
	
	/**
	 * Sets the name of the exercise. 
	 * @param newName The new name of the exercise. 
	 */
	public void setName(String newName)
	{
		this.name = newName;
	}
	
	/**
	 * Sets the caloric expenditure. 
	 * @param newExpenditure The new expenditure. 
	 */
	public void setExpenditure(double newExpenditure)
	{
		this.expenditure = newExpenditure;
	}
	
	/**
	 * Returns the name of the exercise. 
	 */
	public String getName()
	{
		return this.name;
	}
	
	/**
	 * Returns the caloric expenditure. 
	 * @return The caloric expenditure. 
	 */
	public double getExpenditure()
	{
		return this.expenditure;
	}
	
}
